package gdut.jmxywz.been;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Message entity. @author MyEclipse Persistence Tools
 */

public class Message implements java.io.Serializable {

	// Fields

	private Integer messageId;
	private Teacher teacher;
	private String messageTitle;
	private String messageContext;
	private Date messageTime;
	private Set messageMemberses = new HashSet(0);
	private Set messageFileses = new HashSet(0);

	// Constructors

	/** default constructor */
	public Message() {
	}

	/** minimal constructor */
	public Message(Teacher teacher, String messageTitle) {
		this.teacher = teacher;
		this.messageTitle = messageTitle;
	}

	/** full constructor */
	public Message(Teacher teacher, String messageTitle, String messageContext,
			Date messageTime, Set messageMemberses, Set messageFileses) {
		this.teacher = teacher;
		this.messageTitle = messageTitle;
		this.messageContext = messageContext;
		this.messageTime = messageTime;
		this.messageMemberses = messageMemberses;
		this.messageFileses = messageFileses;
	}

	// Property accessors

	public Integer getMessageId() {
		return this.messageId;
	}

	public void setMessageId(Integer messageId) {
		this.messageId = messageId;
	}

	public Teacher getTeacher() {
		return this.teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public String getMessageTitle() {
		return this.messageTitle;
	}

	public void setMessageTitle(String messageTitle) {
		this.messageTitle = messageTitle;
	}

	public String getMessageContext() {
		return this.messageContext;
	}

	public void setMessageContext(String messageContext) {
		this.messageContext = messageContext;
	}

	public Date getMessageTime() {
		return this.messageTime;
	}

	public void setMessageTime(Date messageTime) {
		this.messageTime = messageTime;
	}

	public Set getMessageMemberses() {
		return this.messageMemberses;
	}

	public void setMessageMemberses(Set messageMemberses) {
		this.messageMemberses = messageMemberses;
	}

	public Set getMessageFileses() {
		return this.messageFileses;
	}

	public void setMessageFileses(Set messageFileses) {
		this.messageFileses = messageFileses;
	}

}